#include	"Database.h"
#include	"CenterService.h"
#include	<protocols/Common.pb.h>

void DatabaseConnector::OnReceive(Protocol * msg) {
	switch (msg->pf) {
	case Proto::RSP_ROLELIST: GService.AfterDB_RoleList(msg); break;
	case Proto::RSP_GETROLE: GService.AfterDB_Role(msg); break;
	default:
		LOG_ERR("[dbproxy]Received unspported message. PF : %d", (int)msg->pf);
		break;
	}
}